import {getQueryHeaders, requestGet, requestPost} from "@/util/means/request";
import {GET_PERFORMING_INFO} from "@/api/user";

let userInfo = null

const initUserInfo = () => {
  return new Promise((resolve, reject) => {
    requestGet({url: GET_PERFORMING_INFO, header: getQueryHeaders()}).then(res => {
      userInfo = res
      resolve(res)
    }).catch(e => {
      reject()
    })
  });
}

const getUserInfo = () => userInfo

export {
  initUserInfo,
  getUserInfo,
}
